package com.atguigu.gulimall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gulimall.web.vo.SkuDetailVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author nicc
 * @version 1.0
 * @className ItemFeignClient
 * @date 2022-10-03 14:43
 */
@RequestMapping("/api/inner/item")
@FeignClient("service-item")
public interface ItemFeignClient {

    @GetMapping("/detail/{skuId}")
    Result<SkuDetailVo> skuDetail(@PathVariable("skuId") Long skuId);

}
